<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Betterlife Front UI</title>

    <script src="src/js/base/bb.js" charset="utf-8"></script>
    <script src="src/js/base/shim.js" charset="utf-8"></script>
    <script type="text/javascript">
      if($_.browser.android) console.log("android");
      else if($_.browser.ios) console.log("ios");
      else console.log("desktop");

      var birthday = new Date("2017-02-22T11:24:00");
      console.log($_.dateTimeDiff(birthday));

      var a1=[1,3,6,7,8,10];
      var a2=[3,5,6,8];
      var a3=a1.concat(a2);
      console.log(a3);
      var a4=a1.diff(a2);
      console.log(a4);
    </script>
  </head>
  <body>
    <div id="content">
      <ul>
        <li>a</li>
        <li>b</li>
        <li>c</li>
        <li>d</li>
        <li>e</li>
        <li>f</li>
      </ul>
    </div>

    <ul>
      <li>a</li>
      <li>b</li>
      <li>c</li>
      <li>d</li>
      <li>e</li>
      <li>f</li>
    </ul>
  </body>
  <script type="text/javascript">
    $$("#content").append("Hello skygreen2001!");
    console.log($$("#content"));
    console.log($$("#content li"));

    console.log($$("#content").html());

    $$.each($$("#content li"), function(index, item){
      console.log("bb" + "[" + index +"]: "+ item.innerHTML);
    });
  </script>
</html>
